home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Development
/
General
/
Script Tools
/
Examples
/
Shutdown Example
< prev
Wrap
Text File
|
1993-07-08
|
277b
|
7 lines
set result to display dialog "Are you sure you want to shutdown?" ¬
buttons {"Shutdown", "Restart", "Cancel"} ¬
default button "Cancel"
if button returned of result = "Shutdown" then ¬
shutdown without rest
if button returned of result = "Restart" then ¬
shutdown with rest